<template>
  <div>
    <van-nav-bar title="发现" right-text="搜索" @click-right="goToSearch" />
    <van-tabs v-model="activeTab">
      <van-tab title="全部">
        <post-item v-for="(item, index) in list" :key="index" :item="item" />
      </van-tab>
      <van-tab title="穿搭">穿搭内容</van-tab>
      <van-tab title="美妆">美妆内容</van-tab>
    </van-tabs>
  </div>
</template>

<script setup>
import { ref } from 'vue'
import { useRouter } from 'vue-router'
const router = useRouter()
const activeTab = ref('全部')
const list = ref([/* 模拟数据 */])

const goToSearch = () => router.push('/search')
</script>